//kechengxiangqin.js
var that;
const app=getApp();
var ipUrl=app.globalData.ipUrl;
Page({
  data: {
    active: 0,
    show: false,
  },
  onLoad: function () {
    that=this;
    that.setData({ 
      ipUrl: ipUrl
     });
    wx.request({
      url: ipUrl+'/teacherdetails/teacherdetails/selectByIdTeacher?tid='+6,
      header: {
        'content-type': 'application/json' // 默认值
      },success(res){
        that.setData({
          teacherdeatils:res.data
        });
      },fail(e){
        console.log("错误")
      }
    })
  },
})
